package com.steven.ourcontest.forum.bean

import com.google.gson.annotations.SerializedName
import java.io.Serializable

open class ForumBean(open val weight: Int = 10) : Comparator<ForumBean>,Serializable {
    override fun compare(o1: ForumBean, o2: ForumBean): Int {
        return o1.weight.compareTo(o2.weight)
    }
}

data class ForumContentBean(
    @SerializedName("uname")
    val uname: String,
    @SerializedName("iconUrl")
    val iconUrl: String?,
    @SerializedName("fid")
    val fid: Long,
    @SerializedName("uid")
    val uid: Long,
    @SerializedName("title")
    val title:String,
    @SerializedName("content")
    val content: String,
    @SerializedName("images")
    val images: String?,
    @SerializedName("readNum")
    val readNum: Long,
    @SerializedName("createTime")
    val createTime: Long,
    @SerializedName("discussNum")
    val discussNum: Long
): ForumBean()